﻿package mortal.game.view.common.cd
{
    import Message.Game.*;
    import mortal.game.resource.info.item.*;
    import mortal.game.view.pack.data.*;
    import mortal.game.view.skill.*;

    public class CDDataType extends Object
    {
        public static const skillInfo:int = 1;
        public static const itemData:int = 2;
        public static const timeButton:int = 3;
        public static const backPackLock:int = 4;
        public static const publicCD:int = 5;
        public static const petInfo:int = 6;
        public static const skillSeries:int = 7;

        public function CDDataType()
        {
            return;
        }// end function

        public static function parseType(param1:Object) : int
        {
            if (param1 is SkillInfo)
            {
                return CDDataType.skillInfo;
            }
            if (param1 is ItemData)
            {
                return CDDataType.itemData;
            }
            if (param1 is PackItemData)
            {
                return CDDataType.backPackLock;
            }
            if (param1 is SPet)
            {
                return CDDataType.petInfo;
            }
            return CDDataType.timeButton;
        }// end function

    }
}
